﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JXC.Core.Models
{
    /// <summary>
    /// 报价单
    /// </summary>
    public class Quotation
    {

        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Guid Id { get; set; }//报价单单号

        public DateTime QuotationDate { get; set; }//报价日期

        [ForeignKey("TheCustomerTableId")]
        public Guid Client { get; set; }//客户 

        [ForeignKey("UserInfosId")]
        public Guid Offerer { get; set; }//报价人

        public string Currency { get; set; }//货币
        [ForeignKey("UserInfosId")]
        public Guid Operator { get; set; }//操作员

        public string Remark { get; set; }//备注

        public TheCustomerTable TheCustomerTable { get; set; }
        public UserInfos UserInfos { get; set; }



    }
}
